<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );

if($empty_cart) { ?>
    
    <div style="text-align: center;">
    <?php if(!$vmMinicart) { ?>
       
    <?php }
    echo $VM_LANG->_('PHPSHOP_EMPTY_CART') ?>
    </div>
<?php } 
else {
    // Loop through each row and build the table
    foreach( $minicart as $cart ) { 		

		foreach( $cart as $attr => $val ) {
			// Using this we make all the variables available in the template
			// translated example: $this->set( 'product_name', $product_name );
			$this->set( $attr, $val );
		}
        if(!$vmMinicart) { // Build Minicart
            ?> <div class="vm_cart_prod clearfix">
            <div style="float: left;">
         <a href="<?php echo $cart['url'] ?>"><?php echo $cart['product_name'] ?></a><br /><span class="vm_cart_attributes"><?php echo $cart['attributes'] ?></span>
            </div>
            <div class="vm_cart_price">
              <span class="vm_cart_quantity"><?php echo $cart['quantity'] ?> x </span><?php echo $cart['price'] ?>
            </div>           
            </div>
	  <?php
        }
    }
}
if(!$vmMinicart) { ?>
  
<?php } ?>
<div style="float: left;" >
<?php echo $total_products ?>
</div>
<div class="vm_cart_totalprice">
<?php echo $total_price ?>
</div>
<?php if (!$empty_cart && !$vmMinicart) { ?>
    <br/><br/><br style="clear:both" /><div class="vm_cart_showcart" align="center">
    <?php echo $show_cart ?>
    </div>

<?php } 
echo $saved_cart;
?>